Release 10.1A: OpenEdge Development:
Progress 4GL Reference


WRITE-MESSAGE( ) method

Writes a user message to the current log file.

For an interactive or batch client, the WRITE-MESSAGE( ) method writes the log entries to the log file specified by the LOGFILE-NAME attribute or the Client Logging (-clientlog) startup parameter. For WebSpeed agents and AppServer servers, the WRITE-MESSAGE( ) method writes the log entries to the server log file.

Return type: LOGICAL

Applies to: LOG-MANAGER system handle

Syntax
WRITE-MESSAGE( msg-exp [, subsys-expr ]) 

msg-exp

A character expression or variable representing the message to write to the log file.

subsys-expr

A character expression representing the subsystem identifier to write to the log file. The default is "APPL". You can provide your own subsystem identifier. The subsystem identifier has a character limit 10 characters, and is padded to 10 characters. If you provide a subsystem identifier longer than 10 characters, WRITE-MESSAGE( ) writes only the first 10 characters.

Example

The following is an example:

LOG-MANAGER:WRITE-MESSAGE("Got here, x=" + string(x), "DEBUG1"). 

The following line appears in the log file:

[04/12/05@13:19:19.742-0500] P-003616 T-001984 1 4GL DEBUG1    Got here, x=5 

Notes


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095